package designpattern.observer;

import java.util.Observable;

public class WeatherData extends Observable{
	private float temperature;
	private float humidaty;
	private float pressure;
	
	public void messurementChanged() {
		setChanged();
		notifyObservers();
	}
	
	public void setMessurements(float temperature, float humidaty, float pressure) {
		this.temperature = temperature;
		this.humidaty = humidaty;
		this.pressure = pressure;
		messurementChanged();
	}

	public float getTemperature() {
		return temperature;
	}

	public float getHumidaty() {
		return humidaty;
	}
	
	public float getPressure() {
		return pressure;
	}
	
}
